package com.itheima.common.utils;

import java.util.List;

/**
 *	@author zangye03
 *	date Jul 15, 202110:50:19 PM
 *	Description	 
 *
 */

public class Page<T> {
	/**
	 * 总条数
	 */
	private int total;
	/**
	 * 当前页
	 */
	private int page;
	/**
	 * 每页数
	 */
	private int size;
	/**
	 * 结果集
	 */
	private List<T> rows;
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public List<T> getRows() {
		return rows;
	}
	public void setRows(List<T> rows) {
		this.rows = rows;
	}
	@Override
	public String toString() {
		return "Page [total=" + total + ", page=" + page + ", size=" + size + ", rows=" + rows + "]";
	}
	
	
	
}
